home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir42 / gnudbm14.zip / GDBMERRN.H < prev    next >
Text File  |  1990-08-14  |  2KB  |  51 lines

  1. /* gdbmerrno.h - The enumeration type describing all the dbm errors. */
  2.  
  3. /*  This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
  4.     Copyright (C) 1990  Free Software Foundation, Inc.
  5.  
  6.     GDBM is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 1, or (at your option)
  9.     any later version.
  10.  
  11.     GDBM is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with GDBM; see the file COPYING.  If not, write to
  18.     the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20.     You may contact the author by:
  21.        e-mail:  phil@wwu.edu
  22.       us-mail:  Philip A. Nelson
  23.                 Computer Science Department
  24.                 Western Washington University
  25.                 Bellingham, WA 98226
  26.         phone:  (206) 676-3035
  27.        
  28. *************************************************************************/
  29.  
  30.  
  31. /* gdbm sends back the following error codes in the variable gdbm_errno. */
  32. typedef enum {    GDBM_NO_ERROR,
  33.         GDBM_MALLOC_ERROR,
  34.         GDBM_BLOCK_SIZE_ERROR,
  35.         GDBM_FILE_OPEN_ERROR,
  36.         GDBM_FILE_WRITE_ERROR,
  37.         GDBM_FILE_SEEK_ERROR,
  38.         GDBM_FILE_READ_ERROR,
  39.         GDBM_BAD_MAGIC_NUMBER,
  40.         GDBM_EMPTY_DATABASE,
  41.         GDBM_CANT_BE_READER,
  42.             GDBM_CANT_BE_WRITER,
  43.         GDBM_READER_CANT_DELETE,
  44.         GDBM_READER_CANT_STORE,
  45.         GDBM_READER_CANT_REORGANIZE,
  46.         GDBM_UNKNOWN_UPDATE,
  47.         GDBM_ITEM_NOT_FOUND,
  48.         GDBM_REORGANIZE_FAILED,
  49.         GDBM_CANNOT_REPLACE}
  50.     gdbm_error;
  51.